package com.xsjl.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xsjl.user.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * admin数据访问接口
 * @author Administrator
 *
 */

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from tb_admin where loginname = #{loginname}")
    Admin findByName(String loginname);
}
